package top.oylan.project.ctrl.home;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by A on 2019/1/16.
 */
@RestController
@RequestMapping(value = "/index")
public class IndexController {

    /**
     * 首页的
     * @return
     */
    @RequestMapping("/index")
    public JSON index(){
        JSONObject object = new JSONObject();
        object.put("id",12);
        object.put("name","abduahad");
        return object;
    }
}
